﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;

namespace UICalture
{
    public partial class ExportResource : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            XmlDocument xml = new XmlDocument();
            xml.Load(@"E:\Projects\UICulture\UICulture\App_LocalResources\Default.aspx.resx");


            Dictionary<string, string> dicLang = new Dictionary<string, string>();
            foreach (XmlNode node in xml.SelectNodes("root/data"))
            {
                string name = node.Attributes["name"].Value;
                string value = node.SelectSingleNode("value").InnerText;

                dicLang.Add(name, value);

                Response.Write(string.Format("{0} {1}\r\n", name, value));
            }
        }
    }
}
